package com.pingan.springboot_es_api.service;

import com.pingan.springboot_es_api.domain.Demo;
import org.frameworkset.elasticsearch.entity.ESDatas;

/**
 * Created by Kay on 2018/10/28
 *
 * Es   Demo 服务接口
 */
public interface DemoService {

    /**
     *  根据id 查询
     * @param id
     * @return
     */
    public Demo SearchById(String id);

    /**
     * 查询所有
     * @return
     */
    public ESDatas<Demo> SearchAll();

}
